package cn.hsa.xxx.bookData.service.impl;

import cn.hsa.xxx.bookData.bo.ShelvesApprovalProcessBO;
import cn.hsa.xxx.api.dto.ShelvesApprovalProcessDTO;
import cn.hsa.xxx.api.service.ShelvesApprovalProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShelvesApprovalProcessServiceImpl implements ShelvesApprovalProcessService {

    @Autowired
    private ShelvesApprovalProcessBO shelvesApprovalProcessBO;

    @Override
    public ShelvesApprovalProcessDTO add(ShelvesApprovalProcessDTO shelvesApprovalProcessDTO) {
        return shelvesApprovalProcessBO.add(shelvesApprovalProcessDTO);
    }

    @Override
    public String delete(String id) {
        return shelvesApprovalProcessBO.delete(id);
    }

    @Override
    public ShelvesApprovalProcessDTO get(String id) {
        return shelvesApprovalProcessBO.get(id);
    }

    @Override
    public String update(ShelvesApprovalProcessDTO shelvesApprovalProcessDTO) {
        return shelvesApprovalProcessBO.update(shelvesApprovalProcessDTO);
    }

    @Override
    public List<ShelvesApprovalProcessDTO> getPage(int pageNo, int pageSize) {
        return shelvesApprovalProcessBO.getPage(pageNo,pageSize);
    }
}
